package com.drinkian.aliyun_oss.controller;

import com.drinkian.aliyun_oss.service.IAssumeRole;
import com.drinkian.entity.RequestResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AssumeRoleController {

    @Autowired
    private IAssumeRole iAssumeRole;

    @GetMapping("getOssToken")
    public RequestResult getOssToken(String username) {
        return iAssumeRole.doGetOssToken(username);
    }
}
